package cz.mendelu.swi2.documents.model;

import java.sql.Date;
import java.util.ArrayList;

import cz.mendelu.swi2.documents.model.enums.DocumentType;



/**
 * Document.
 * 
 * @author Jakub Skrha, xskrha
 */
public class Document
{

	private int id;
	private Date date;
	private String name;
	private DocumentType type;
	private Version publishedVersion;
	private ArrayList<Version> versionsList;
	private Version workingVersion;


	
	
	

	public Document(int id, Date date, String name, DocumentType type) {
		this.id = id;
		this.date = date;
		this.name = name;
		this.type = type;
	}
	

	public void hideAllVersions() {

	}

	public void publishVersion() {

	}


	//////////////////////////////
	// Getters and setters
	//////////////////////////////
	
	public Date getDate() {
		return date;
	}


	public void setDate(Date date) {
		this.date = date;
	}


	public String getName() {
		return name;
	}


	public void setName(String name) {
		this.name = name;
	}


	public DocumentType getType() {
		return type;
	}


	public void setType(DocumentType type) {
		this.type = type;
	}


	public ArrayList<Version> getVersionsList() {
		return versionsList;
	}


	public void setVersionsList(ArrayList<Version> versionsList) {
		this.versionsList = versionsList;
	}


	public void setPublishedVersion(Version publishedVersion) {
		this.publishedVersion = publishedVersion;
	}


	public void setWorkingVersion(Version workingVersion) {
		this.workingVersion = workingVersion;
	}

	public Version getPublishedVersion() {
		return publishedVersion;
	}

	public Version getWorkingVersion() {
		return workingVersion;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	
	
}